diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-06-25 09:28:58 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-06-25 09:28:58 +0100 |
| commit | 1c085ab26815a2f61ae822f54925090f836a04e4 (patch) | |
| tree | 93760ad2f046282a59502d26008a476a5f6bfd7b /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 936ac762b46f52b2cb03f386c48cb85567ea89c7 (diff) | |
WASM binary format: support element segments
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 35 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..15491b03 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.WasmBinaryFormatModuleTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,35 @@ + +module.wasm: file format wasm 0x1 + +Section Details: + +Type[1]: + - type[0] () -> nil +Function[3]: + - func[0] sig=0 <f1> + - func[1] sig=0 <f2> + - func[2] sig=0 <f3> +Table[1]: + - table[0] type=funcref initial=1 +Elem[1]: + - segment[0] flags=0 table=0 count=2 - init i32=0 + - elem[0] = func[0] <f1> + - elem[1] = func[2] <f3> +Code[3]: + - func[0] size=2 <f1> + - func[1] size=2 <f2> + - func[2] size=2 <f3> +Custom: + - name: "name" + - func[0] <f1> + - func[1] <f2> + - func[2] <f3> + +Code Disassembly: + +000040 func[0] <f1>: + 000041: 0b | end +000047 func[1] <f2>: + 000048: 0b | end +00004e func[2] <f3>: + 00004f: 0b | end
\ No newline at end of file |
